﻿using System;
using System.Threading.Tasks;
using Volo.Abp;

namespace YaAppoint.Permissions
{
    [RemoteService(isEnabled: false)]
    public interface IUserPermissionService
    {
        /// <summary>
        /// 用户权限授予
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="permissionName"></param>
        /// <returns></returns>
        Task GrantPermissionForUserAsync(Guid userId, string permissionName);

        /// <summary>
        /// 解除用户权限授予
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="permissionName"></param>
        /// <returns></returns>
        Task ProhibitPermissionForUserAsync(Guid userId, string permissionName);
    }
}
